// import { printUnitNum } from '@/views/permission/wipManagement/productionCenter/components/productionHomepage/options/jinchang/home/adjustingSetting/printUnit';

const printUnitNum = 3;

const printUnitList: any = [];

for (let i = 0; i < printUnitNum; i++) {
  const key = i + 1;

    printUnitList.push(
      {
        id: '01',
        code: 3,
        type: 'D',
        offset: 0,
        startOffset: 1,
        modId: 1,
        modbusId: `31${key}`,
        plcId: `${key}color`,
        list: [
          {
            code: 6,
            name: `${key}色墨颜色`,
            pName: `印刷${key}单元`,
            funId: `${key}PrintingColor`,
            describes: '0 黑  1 蓝  2 绿  3 天蓝  4红  5玫瑰花 6黄  7白',
            type: 'int16',
            leng: 2,
            decimalPlaces: 0
          } //D1
        ]
      },
      {
        id: '01',
        code: 1,
        type: 'M',
        offset: 0,
        startOffset: 32,
        modId: 1,
        modbusId: `31${key}`,
        plcId: `${key}color`,
        list: [
          {
            code: 5,
            name: `${key}色径向伺服故障`,
            pName: `印刷${key}单元-故障`,
            funId: `${key}Printing200`,
            describes: '',
            type: 'bool',
            leng: 2,
            decimalPlaces: 0
          }, //W2.00 M32
          {
            code: 5,
            name: `${key}色轴向伺服故障`,
            pName: `印刷${key}单元-故障`,
            funId: `${key}Printing201`,
            describes: '',
            type: 'bool',
            leng: 2,
            decimalPlaces: 0
          }, //W2.01 M33
          {
            code: 5,
            name: `${key}色压印超上限`,
            pName: `印刷${key}单元-故障`,
            funId: `${key}Printing202`,
            describes: '',
            type: 'bool',
            leng: 2,
            decimalPlaces: 0
          }, //W2.02 M34
          {
            code: 5,
            name: `${key}色压印超下限`,
            pName: `印刷${key}单元-故障`,
            funId: `${key}Printing203`,
            describes: '',
            type: 'bool',
            leng: 2,
            decimalPlaces: 0
          }, //W2.03 M35
          {
            code: 5,
            name: `${key}色着墨超上限`,
            pName: `印刷${key}单元-故障`,
            funId: `${key}Printing204`,
            describes: '',
            type: 'bool',
            leng: 2,
            decimalPlaces: 0
          }, //W2.04 M36
          {
            code: 5,
            name: `${key}色着墨超下限`,
            pName: `印刷${key}单元-故障`,
            funId: `${key}Printing205`,
            describes: '',
            type: 'bool',
            leng: 2,
            decimalPlaces: 0
          }, //W2.05 M37
          {
            code: 5,
            name: `${key}色风机变频故障`,
            pName: `印刷${key}单元-故障`,
            funId: `${key}Printing206`,
            describes: '',
            type: 'bool',
            leng: 2,
            decimalPlaces: 0
          }, //W2.06 M38
          {
            code: 5,
            name: `${key}色输送皮带故障`,
            pName: `印刷${key}单元-故障`,
            funId: `${key}Printing207`,
            describes: '',
            type: 'bool',
            leng: 2,
            decimalPlaces: 0
          }, //W2.07 M39
          {
            code: 5,
            name: `${key}色压印伺服故障`,
            pName: `印刷${key}单元-故障`,
            funId: `${key}Printing208`,
            describes: '',
            type: 'bool',
            leng: 2,
            decimalPlaces: 0
          }, //W2.08 M40
          {
            code: 5,
            name: `${key}色着墨伺服故障`,
            pName: `印刷${key}单元-故障`,
            funId: `${key}Printing209`,
            describes: '',
            type: 'bool',
            leng: 2,
            decimalPlaces: 0
          }, //W2.09 M41
          {
            code: 5,
            name: `${key}色轴向右限超限`,
            pName: `印刷${key}单元-故障`,
            funId: `${key}Printing210`,
            describes: '',
            type: 'bool',
            leng: 2,
            decimalPlaces: 0
          }, //W2.10 M42
          {
            code: 5,
            name: `${key}色轴向左限超限`,
            pName: `印刷${key}单元-故障`,
            funId: `${key}Printing211`,
            describes: '',
            type: 'bool',
            leng: 2,
            decimalPlaces: 0
          }, //W2.11 M43
          {
            code: 5,
            name: `${key}色缺墨报警`,
            pName: `印刷${key}单元-故障`,
            funId: `${key}Printing212`,
            describes: '',
            type: 'bool',
            leng: 2,
            decimalPlaces: 0
          }, //W2.12 M44
          {
            code: 5,
            name: `${key}色伺服报警`,
            pName: `印刷${key}单元-故障`,
            funId: `${key}Printing213`,
            describes: '',
            type: 'bool',
            leng: 2,
            decimalPlaces: 0
          }, //W2.13 M45
          {
            leng: 2
          }, //W2.14 M46
          {
            code: 5,
            name: `${key}色热过载报警`,
            pName: `印刷${key}单元-故障`,
            funId: `${key}Printing215`,
            describes: '',
            type: 'bool',
            leng: 2,
            decimalPlaces: 0
          }, //W2.15 M47
          {
            code: 5,
            name: `${key}色墨泵运行`,
            pName: `印刷${key}单元`,
            funId: `${key}PrintingInkPumpOperation`,
            describes: '',
            type: 'bool',
            leng: 2,
            decimalPlaces: 0
          }, //w3.00 M48
          {
            leng: 62
          }, // M79
          {
            code: 5,
            name: `${key}色风机启停`,
            pName: `印刷${key}单元`,
            funId: `${key}ColorFanStartStop`,
            describes: '',
            type: 'bool',
            leng: 2,
            decimalPlaces: 0
          } //w5.0 M80
        ]
      },
      {
        id: '01',
        code: 1,
        type: 'M',
        offset: 0,
        startOffset: 3200,
        modId: 1,
        modbusId: `41${key}`,
        plcId: `${key}color`,
        list: [
          {
            code: 5,
            name: `${key}色墨辊升降`,
            pName: `印刷${key}单元`,
            funId: `${key}PrintingInkRollerTop`,
            describes: '',
            type: 'bool',
            leng: 2,
            decimalPlaces: 0
          } //W200.0 M3200
        ]
      },
      {
        id: '01',
        code: 1,
        type: 'M',
        offset: 0,
        startOffset: 4008,
        modId: 1,
        modbusId: `41${key}`,
        plcId: `${key}color`,
        list: [
          {
            code: 5,
            name: `${key}色墨辊灯`,
            pName: `印刷${key}单元`,
            funId: `${key}PrintingInkRollerStart`,
            describes: '',
            type: 'bool',
            leng: 2,
            decimalPlaces: 0
          } //W250.8 M4008
        ]
      }
    );
  }

export default [
  // NJ主控
  {
    id: '01',
    code: 3,
    type: 'D',
    offset: 0,
    startOffset: 598,
    modId: 1,
    modbusId: '32',
    plcId: `NJ`,
    list: [
      {
        code: 10,
        name: '生产速度',
        pName: 'NJ主控',
        funId: 'productionSpeedGet',
        describes: '',
        type: 'float',
        leng: 4,
        decimalPlaces: 0,
        byteOrder: 'CDAB',
        decimal: 1
      } //D598
    ]
  },
  {
    id: '01',
    code: 3,
    type: 'D',
    offset: 0,
    startOffset: 750,
    modId: 1,
    modbusId: '32',
    plcId: `NJ`,
    list: [
      {
        code: 10,
        name: '版长设定',
        pName: 'NJ主控',
        funId: 'versionLengthSet',
        describes: '',
        type: 'int32',
        leng: 4,
        decimalPlaces: 3,
        byteOrder: 'CDAB',
        decimal: 3
      } //D750
    ]
  },
  {
    id: '01',
    code: 1,
    type: 'M',
    offset: 0,
    startOffset: 9,
    modId: 1,
    modbusId: '42',
    plcId: `NJ`,
    list: [
      {
        code: 5,
        name: '提升0',
        pName: 'NJ主控',
        funId: 'improve9',
        describes: '模切的提升',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      }, //w0.9 M9
      {
        code: 5,
        name: '提升1',
        pName: 'NJ主控',
        funId: 'improve1',
        describes: '印刷单元1的提升',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      }, //w0.10 M10
      {
        code: 5,
        name: '提升2',
        pName: 'NJ主控',
        funId: 'improve2',
        describes: '印刷单元2的提升',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      }, //w0.11 M11
      {
        code: 5,
        name: '提升3',
        pName: 'NJ主控',
        funId: 'improve3',
        describes: '印刷单元3的提升',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      }, //w0.12 M12
      {
        code: 5,
        name: '提升4',
        pName: 'NJ主控',
        funId: 'improve4',
        describes: '印刷单元4的提升',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      }, //w0.13 M13
      {
        code: 5,
        name: '提升5',
        pName: 'NJ主控',
        funId: 'improve5',
        describes: '印刷单元5的提升',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      }, //w0.14 M14
      {
        code: 5,
        name: '提升6',
        pName: 'NJ主控',
        funId: 'improve6',
        describes: '印刷单元6的提升',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      }, //w0.15 M15
      {
        leng: 34
      },
      {
        code: 5,
        name: '着墨强制',
        pName: 'NJ主控',
        funId: 'imprintingCoercion',
        describes: '',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      }, //w2.1 M33
      {
        leng: 140
      },
      {
        code: 5,
        name: '归零设定',
        pName: 'NJ主控',
        funId: 'zeroSetting',
        describes: '',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      } //W6.8 M104
    ]
  },
  {
    id: '01',
    code: 1,
    type: 'M',
    offset: 0,
    startOffset: 4810,
    modId: 1,
    modbusId: '42',
    plcId: `NJ`,
    list: [
      {
        code: 5,
        name: '归位停',
        pName: 'NJ主控',
        funId: 'homingStop',
        describes: '',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      }, //W300.10 M4810
      {
        code: 5,
        name: '报警复位',
        pName: 'NJ主控',
        funId: 'alarmReset',
        describes: '',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      }, //W300.11 M4811
      {
        leng: 12
      },
      {
        code: 5,
        name: '挂版定位',
        pName: 'NJ主控',
        funId: 'hangingPlateLocation',
        describes: '',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      }, //W301.2 M4818
      {
        code: 5,
        name: '擦版定位',
        pName: 'NJ主控',
        funId: 'erasingPlateLocation',
        describes: '',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      } //W301.3 M4819
    ]
  },
  //todo start
  //送纸部
  {
    id: '01',
    code: 3,
    type: 'D',
    offset: 0,
    startOffset: 6,
    modId: 1,
    modbusId: '33',
    plcId: 'paperFeed',
    list: [
      {
        code: 6,
        name: '生产车速',
        pName: '送纸单元',
        funId: 'productionSpeed',
        describes: '',
        type: 'float',
        leng: 4,
        decimalPlaces: 0,
        byteOrder: 'CDAB',
        decimal: 1
      } //D6-D7
    ]
  },
  {
    id: '01',
    code: 3,
    type: 'D',
    offset: 0,
    startOffset: 226,
    modId: 1,
    modbusId: '33',
    plcId: 'paperFeed',
    list: [
      {
        code: 10,
        name: '设定产量',
        pName: '送纸单元',
        funId: 'productionQuantitySet',
        describes: '',
        type: 'int32',
        leng: 4,
        decimalPlaces: 0,
        byteOrder: 'CDAB',
        decimal: 0
      }, //D226-D227
      {
        code: 10,
        name: '实际产量',
        pName: '送纸单元',
        funId: 'productionQuantityGet',
        describes: '',
        type: 'int32',
        leng: 4,
        decimalPlaces: 0,
        byteOrder: 'CDAB',
        decimal: 0
      }, //D228-D229
      {
        code: 6,
        name: '总产量',
        pName: '送纸单元',
        funId: 'totalOutput',
        describes: '',
        type: 'uint32',
        leng: 4,
        decimalPlaces: 0,
        byteOrder: 'CDAB',
        decimal: 0
      } //D230-D231
    ]
  },
  {
    id: '01',
    code: 1,
    type: 'M',
    offset: 0,
    startOffset: 32,
    modId: 1,
    modbusId: '33',
    plcId: 'paperFeed',
    list: [
      {
        code: 5,
        name: '主机变频器故障',
        pName: '送纸单元-故障',
        funId: 'paperFeedFault200',
        describes: '',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      }, //W2.00 M32
      {
        code: 5,
        name: '后挡板伺服故障',
        pName: '送纸单元-故障',
        funId: 'paperFeedFault201',
        describes: '',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      }, //W2.01 M33
      {
        code: 5,
        name: '后挡板伺服故障',
        pName: '送纸单元-故障',
        funId: 'paperFeedFault202',
        describes: '',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      }, //W2.02 M34
      {
        code: 5,
        name: '后挡板伺服故障',
        pName: '送纸单元-故障',
        funId: 'paperFeedFault203',
        describes: '',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      }, //W2.03 M35
      {
        code: 5,
        name: '后挡板伺服故障',
        pName: '送纸单元-故障',
        funId: 'paperFeedFault204',
        describes: '',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      }, //W2.04 M36
      {
        code: 5,
        name: '后挡板伺服故障',
        pName: '送纸单元-故障',
        funId: 'paperFeedFault205',
        describes: '',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      }, //W2.05 M37
      {
        code: 5,
        name: '后挡板伺服故障',
        pName: '送纸单元-故障',
        funId: 'paperFeedFault206',
        describes: '',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      }, //W2.06 M38
      {
        code: 5,
        name: '后挡板伺服故障',
        pName: '送纸单元-故障',
        funId: 'paperFeedFault207',
        describes: '',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      }, //W2.07 M39
      {
        code: 5,
        name: '后挡板伺服故障',
        pName: '送纸单元-故障',
        funId: 'paperFeedFault208',
        describes: '',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      }, //W2.08 M40
      {
        code: 5,
        name: '后挡板伺服故障',
        pName: '送纸单元-故障',
        funId: 'paperFeedFault209',
        describes: '',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      }, //W2.09 M41
      {
        code: 5,
        name: '后挡板伺服故障',
        pName: '送纸单元-故障',
        funId: 'paperFeedFault210',
        describes: '',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      }, //W2.10 M42
      {
        code: 5,
        name: '后挡板伺服故障',
        pName: '送纸单元-故障',
        funId: 'paperFeedFault211',
        describes: '',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      }, //W2.11 M43
      {
        code: 5,
        name: '后挡板伺服故障',
        pName: '送纸单元-故障',
        funId: 'paperFeedFault212',
        describes: '',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      }, //W2.12 M44
      {
        code: 5,
        name: '后挡板伺服故障',
        pName: '送纸单元-故障',
        funId: 'paperFeedFault213',
        describes: '',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      }, //W2.13 M45
      {
        code: 5,
        name: '后挡板伺服故障',
        pName: '送纸单元-故障',
        funId: 'paperFeedFault214',
        describes: '',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      }, //W2.14 M46
      {
        code: 5,
        name: '后挡板伺服故障',
        pName: '送纸单元-故障',
        funId: 'paperFeedFault215',
        describes: '',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      }, //W2.15 M47
      {
        code: 5,
        name: '后挡板伺服故障',
        pName: '送纸单元-故障',
        funId: 'paperFeedFault300',
        describes: '',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      }, //W3.00 M48
      {
        code: 5,
        name: '后挡板伺服故障',
        pName: '送纸单元-故障',
        funId: 'paperFeedFault301',
        describes: '',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      }, //W3.01 M49
      {
        code: 5,
        name: '后挡板伺服故障',
        pName: '送纸单元-故障',
        funId: 'paperFeedFault302',
        describes: '',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      }, //W3.02 M50
      {
        code: 5,
        name: '后挡板伺服故障',
        pName: '送纸单元-故障',
        funId: 'paperFeedFault303',
        describes: '',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      }, //W3.03 M51
      {
        code: 5,
        name: '后挡板伺服故障',
        pName: '送纸单元-故障',
        funId: 'paperFeedFault304',
        describes: '',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      }, //W3.04 M52
      {
        code: 5,
        name: '后挡板伺服故障',
        pName: '送纸单元-故障',
        funId: 'paperFeedFault305',
        describes: '',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      }, //W3.05 M53
      {
        code: 5,
        name: '后挡板伺服故障',
        pName: '送纸单元-故障',
        funId: 'paperFeedFault306',
        describes: '',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      }, //W3.06 M54
      {
        code: 5,
        name: '后挡板伺服故障',
        pName: '送纸单元-故障',
        funId: 'paperFeedFault307',
        describes: '',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      }, //W3.07 M55
      {
        leng: 14
      },
      {
        code: 5,
        name: '后挡板伺服故障',
        pName: '送纸单元-故障',
        funId: 'paperFeedFault315',
        describes: '',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      }, //W3.15 M63
      {
        leng: 6
      },
      {
        code: 5,
        name: '加速',
        pName: '送纸单元',
        funId: 'pickUpSpeed',
        describes: '',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      }, //W4.3 M67
      {
        code: 5,
        name: '减速',
        pName: '送纸单元',
        funId: 'reduceSpeed',
        describes: '',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      }, //W4.4 M68
      {
        leng: 8
      }, //W4.8 M72
      {
        code: 5,
        name: '风机X速档',
        pName: '送纸单元',
        funId: 'fanSpeed',
        describes: '置1低速  0 高速',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      } //W4.9 M73
    ]
  },
  {
    id: '01',
    code: 1,
    type: 'M',
    offset: 0,
    startOffset: 1609,
    modId: 1,
    modbusId: '43',
    plcId: 'paperFeed',
    list: [
      {
        code: 5,
        name: '进纸',
        pName: '送纸单元',
        funId: 'paperFeedingStatusGet',
        describes: '',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      }, //W100.09 M1609
      {
        code: 5,
        name: '隔张进纸',
        pName: '送纸单元',
        funId: 'interlayerFeed',
        describes: '',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      }, //W100.10 M1610
      {
        leng: 4
      }, //W100.12 M1612
      {
        code: 5,
        name: '主机启停',
        pName: '送纸单元',
        funId: 'equipmentStatusGet',
        describes: '',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      }, //W100.13 M1613
      {
        code: 5,
        name: '吸辅风机',
        pName: '送纸单元',
        funId: 'assistiveSuctionFan',
        describes: '',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      }, //W100.14 M1614
      {
        leng: 6
      }, //W101.01 M1617
      {
        code: 5,
        name: '正向点动',
        pName: '送纸单元',
        funId: 'forwardJog',
        describes: '',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      }, //W101.02 M1618
      {
        code: 5,
        name: '反向点动',
        pName: '送纸单元',
        funId: 'reverseJog',
        describes: '',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      } //W101.03 M1619
    ]
  },
  {
    id: '01',
    code: 1,
    type: 'M',
    offset: 0,
    startOffset: 2897,
    modId: 1,
    modbusId: '43',
    plcId: 'paperFeed',
    list: [
      {
        code: 5,
        name: '连拍',
        pName: '送纸单元',
        funId: 'evenBat',
        describes: '',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      } //W181.01 M2897
    ]
  },
  //todo end
  // 印刷单元监听
  ...printUnitList,

  //开槽
  {
    id: '01',
    code: 1,
    type: 'M',
    offset: 0,
    startOffset: 32,
    modId: 1,
    modbusId: '317', // 开槽单元
    plcId: 'slotting',
    list: [
      {
        address16: '2.00',
        code: 5,
        name: '开槽前刀伺服故障',
        pName: '开槽单元-故障',
        funId: 'slotting200',
        describes: '',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      }, //W2.00 M32
      {
        address16: '2.01',
        code: 5,
        name: '箱高伺服故障',
        pName: '开槽单元-故障',
        funId: 'slotting201',
        describes: '',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      }, //W2.01 M33
      {
        address16: '2.02',
        code: 5,
        name: '切角伺服故障',
        pName: '开槽单元-故障',
        funId: 'slotting202',
        describes: '',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      }, //W2.02 M34
      {
        address16: '2.03',
        code: 5,
        name: '角2伺服故障',
        pName: '开槽单元-故障',
        funId: 'slotting203',
        describes: '',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      }, //W2.03 M35
      {
        address16: '2.04',
        code: 5,
        name: '边2伺服故障',
        pName: '开槽单元-故障',
        funId: 'slotting204',
        describes: '',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      }, //W2.04 M36
      {
        address16: '2.05',
        code: 5,
        name: '修边伺服故障',
        pName: '开槽单元-故障',
        funId: 'slotting205',
        describes: '',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      }, //W2.05 M37
      {
        address16: '2.06',
        code: 5,
        name: '开槽箱高上限超限',
        pName: '开槽单元-故障',
        funId: 'slotting206',
        describes: '',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      }, //W2.06 M38
      {
        address16: '2.07',
        code: 5,
        name: '开槽箱高下限超限',
        pName: '开槽单元-故障',
        funId: 'slotting207',
        describes: '',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      }, //W2.07 M39
      {
        address16: '2.08',
        code: 5,
        name: '刀盘角向超上限',
        pName: '开槽单元-故障',
        funId: 'slotting208',
        describes: '',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      }, //W2.08 M40
      {
        address16: '2.09',
        code: 5,
        name: '刀盘角向超中限',
        pName: '开槽单元-故障',
        funId: 'slotting209',
        describes: '',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      }, //W2.09 M41
      {
        address16: '2.10',
        code: 5,
        name: '刀盘角向超下限',
        pName: '开槽单元-故障',
        funId: 'slotting210',
        describes: '',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      }, //W2.10 M42
      {
        address16: '2.11',
        code: 5,
        name: '刀盘边向超上限',
        pName: '开槽单元-故障',
        funId: 'slotting211',
        describes: '',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      }, //W2.11 M43
      {
        address16: '2.12',
        code: 5,
        name: '刀盘边向超中限',
        pName: '开槽单元-故障',
        funId: 'slotting212',
        describes: '',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      }, //W2.12 M44
      {
        address16: '2.13',
        code: 5,
        name: '刀盘边向超下限',
        pName: '开槽单元-故障',
        funId: 'slotting213',
        describes: '',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      }, //W2.13 M45
      {
        address16: '2.14',
        code: 5,
        name: '中刀伺服报警',
        pName: '开槽单元-故障',
        funId: 'slotting214',
        describes: '',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      } //W2.14 M46
    ]
  },
  //开槽偏心
  {
    id: '01',
    code: 1,
    type: 'M',
    offset: 0,
    startOffset: 32,
    modId: 1,
    modbusId: '318', // 开槽偏心单元plc
    plcId: 'slottingBias',
    list: [
      {
        address16: '2.00',
        code: 5,
        name: '开槽前预压伺服故障',
        pName: '开槽偏心单元-故障',
        funId: 'slottingBias200',
        describes: '',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      }, //W2.00 M32
      {
        address16: '2.01',
        code: 5,
        name: '开槽压线伺服故障',
        pName: '开槽偏心单元-故障',
        funId: 'slottingBias201',
        describes: '',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      }, //W2.01 M33
      {
        address16: '2.02',
        code: 5,
        name: '开槽后预压伺服故障',
        pName: '开槽偏心单元-故障',
        funId: 'slottingBias202',
        describes: '',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      }, //W2.02 M34
      {
        address16: '2.03',
        code: 5,
        name: '开槽间隙伺服故障',
        pName: '开槽偏心单元-故障',
        funId: 'slottingBias203',
        describes: '',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      }, //W2.03 M35
      {
        address16: '2.04',
        code: 5,
        name: '开槽前预压超上限',
        pName: '开槽偏心单元-故障',
        funId: 'slottingBias204',
        describes: '',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      }, //W2.04 M36
      {
        address16: '2.05',
        code: 5,
        name: '开槽前预压超下限',
        pName: '开槽偏心单元-故障',
        funId: 'slottingBias205',
        describes: '',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      }, //W2.05 M37
      {
        address16: '2.06',
        code: 5,
        name: '开槽压线超上限',
        pName: '开槽偏心单元-故障',
        funId: 'slottingBias206',
        describes: '',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      }, //W2.06 M38
      {
        address16: '2.07',
        code: 5,
        name: '开槽压线超下限',
        pName: '开槽偏心单元-故障',
        funId: 'slottingBias207',
        describes: '',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      }, //W2.07 M39
      {
        address16: '2.08',
        code: 5,
        name: '开槽后预压超上限',
        pName: '开槽偏心单元-故障',
        funId: 'slottingBias208',
        describes: '',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      }, //W2.08 M40
      {
        address16: '2.09',
        code: 5,
        name: '开槽后预压超下限',
        pName: '开槽偏心单元-故障',
        funId: 'slottingBias209',
        describes: '',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      }, //W2.09 M41
      {
        address16: '2.10',
        code: 5,
        name: '开槽间隙超上限',
        pName: '开槽偏心单元-故障',
        funId: 'slottingBias210',
        describes: '',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      }, //W2.10 M42
      {
        address16: '2.11',
        code: 5,
        name: '开槽间隙超下限',
        pName: '开槽偏心单元-故障',
        funId: 'slottingBias211',
        describes: '',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      }, //W2.11 M43
      {
        leng: 6
      }, //W2.14 M46
      {
        address16: '2.15',
        code: 5,
        name: '开槽热过载报警',
        pName: '开槽偏心单元-故障',
        funId: 'slottingBias215',
        describes: '',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      } //W2.15 M47
    ]
  },
  //模切
  {
    id: '01',
    code: 1,
    type: 'M',
    offset: 0,
    startOffset: 32,
    modId: 1,
    modbusId: '319',
    plcId: 'dieCutting',
    list: [
      {
        code: 5,
        name: '模切轴向伺服故障',
        pName: '模切单元-故障',
        funId: 'dieCutting200',
        describes: '',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      }, //W2.00 M32
      {
        code: 5,
        name: '模切输送伺服故障',
        pName: '模切单元-故障',
        funId: 'dieCutting201',
        describes: '',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      }, //W2.01 M33
      {
        code: 5,
        name: '模切轴向右限超限',
        pName: '模切单元-故障',
        funId: 'dieCutting202',
        describes: '',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      }, //W2.02 M34
      {
        code: 5,
        name: '模切轴向左限超限',
        pName: '模切单元-故障',
        funId: 'dieCutting203',
        describes: '',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      }, //W2.03 M35
      {
        code: 5,
        name: '模切输送超上限',
        pName: '模切单元-故障',
        funId: 'dieCutting204',
        describes: '',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      }, //W2.04 M36
      {
        code: 5,
        name: '模切输送超下限',
        pName: '模切单元-故障',
        funId: 'dieCutting205',
        describes: '',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      }, //W2.05 M37
      {
        code: 5,
        name: '模切间隙超上限',
        pName: '模切单元-故障',
        funId: 'dieCutting206',
        describes: '',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      }, //W2.06 M38
      {
        code: 5,
        name: '模切间隙超下限',
        pName: '模切单元-故障',
        funId: 'dieCutting207',
        describes: '',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      }, //W2.07 M39
      {
        code: 5,
        name: '模切优力辊超左限',
        pName: '模切单元-故障',
        funId: 'dieCutting208',
        describes: '',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      }, //W2.08 M40
      {
        code: 5,
        name: '模切优力辊超右限',
        pName: '模切单元-故障',
        funId: 'dieCutting209',
        describes: '',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      }, //W2.09 M41
      {
        code: 5,
        name: '模切间隙伺服故障',
        pName: '模切单元-故障',
        funId: 'dieCutting210',
        describes: '',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      }, //W2.10 M42
      {
        code: 5,
        name: '模切伺服错误',
        pName: '模切单元-故障',
        funId: 'dieCutting211',
        describes: '',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      }, //W2.11 M43
      {
        code: 5,
        name: '模切径向伺服故障',
        pName: '模切单元-故障',
        funId: 'dieCutting212',
        describes: '',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      }, //W2.12 M44
      {
        leng: 4
      }, //W2.14 M46
      {
        code: 5,
        name: '模切热过载报警',
        pName: '模切单元-故障',
        funId: 'dieCutting215',
        describes: '',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      } //W2.15 M47
    ]
  },
  {
    id: '01',
    code: 1,
    type: 'M',
    offset: 0,
    startOffset: 4960,
    modId: 1,
    modbusId: '319',
    plcId: 'dieCutting',
    list: [
      {
        code: 5,
        name: '模切墨辊升降',
        pName: '模切单元',
        funId: 'dieCuttingRollerTop',
        describes: '',
        type: 'bool',
        leng: 2,
        decimalPlaces: 0
      } //w310.0 M4960
    ]
  }
];
